﻿
#r "System.Windows.Forms.DataVisualization.dll"
#r @"D:\Study\programming\DotNet\LearnByTest\FSharp\PlayFsChart\packages\MSDN.FSharpChart.dll.0.60\lib\MSDN.FSharpChart.dll"

open System
open System.Drawing 
open System.Windows.Forms
open System.Windows.Forms.DataVisualization.Charting
open MSDN.FSharp.Charting

let howtoBar()=
    ["stasi",100.0;"cheka",234.6]
        |> FSharpChart.Bar

let howtoColumn() =
     ["stasi",100.0;"cheka",234.6]
        |> FSharpChart.Column

let howtoPie() =
    ["Conservative" , 306;  "Labour", 258;  "Liberal Democrat" , 57 ]
        |> FSharpChart.Pie

let howtoDoughnut() =
    ["Conservative" , 306;  "Labour", 258;  "Liberal Democrat" , 57 ]
        |> FSharpChart.Doughnut
    

// howtoBar()
// howtoColumn()
// howtoPie()
howtoDoughnut()
    |> FSharpChart.Create
